<template>
  <div>
    <p>&nbsp;学员信息</p>
    <Search />
    <StudentPage />
    <!-- <StudentTable :arr="arr" @parentResetFun="getStudentData"/> -->
    <StudentTable />
    <Dilog v-if="isShow"/> 
  </div>
</template>

<script>
import { getStudentApi } from "../../api/StudentApi";
import Search from "./component/Search.vue";
import StudentTable from "./component/StudentPage.vue";
import StudentPage from "./component/StudentTable.vue";
import Dilog from './component/Dilog.vue'
export default {
  components: { Search, StudentTable, StudentPage, Dilog },
   data() {
    return {
      arr: [],
      isShow:true,
    };
  },
  mounted() {
    this.getStudentData();
  },
  methods: {
    getStudentData(){
      getStudentApi().then(res => {
        // console.log("动态生成页面", res);
        if(res.code == 200){
          this.arr = res.data
        }
      });
    },
  },
  
};
</script>

<style lang="less" scoped>
P {
  border-left: 5px solid blue;
}
</style>